package com.feri.rbacsys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feri.rbacsys.entity.RolePermission;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

/**
 * 20.角色权限关系表(SysRolePermission)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-26 10:40:28
 */
public interface RolePermissionDao extends BaseMapper<RolePermission> {

    @Delete("delete from t_role_perm where role_id=#{rid}")
    int deleteByRid(int rid);

    int insertBatch(List<RolePermission> list);
}

